.login-main {
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #eef2f7;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90e2;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn.active {
    color: #4a90e2;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.password-input {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafd;
}

.form-group input:hover {
    border-color: #4a90e2;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    background: #fff;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message {
    color: #ff4d4f;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a90e2;
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.register-link a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 15px;
        border-radius: 16px;
    }

    .login-tabs {
        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 15px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .login-btn {
        padding: 13px;
        font-size: 15px;
    }
}

/* 登录页面导航栏特殊样式 */
.header .nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header .nav-item {
    white-space: nowrap;
}

.header .nav-item.login-btn {
    background: #4a90e2;
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    transition: all 0.3s;
}

.header .nav-item.login-btn.active {
    background: #fff;
    color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.header .nav-item.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 忘记密码模态框样式 */
.forgot-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.modal-footer {
    margin-top: 30px;
    text-align: right;
}

.submit-btn {
    padding: 12px 30px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #357abd;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 用户类型选择样式 */
.user-type-select {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}